import request from "@/utils/requestPro.js";


// 按销量查询标签功能
export function getLabelApi(params) {
	return request({
		url: '/admin/appHome/print/printBusinessQuery',
		method: 'get',
		params,
	});
}

// 无销量查询标签功能
export function getNoSaleLabelApi(params) {
	return request({
		url: '/admin/appHome/print/getProductInfoNoSale',
		method: 'get',
		params,
	});
}

// 修改标签设置项
export function modifyLabelSetUpApi(params) {
	return request({
		url: '/admin/appHome/print/modifyLabelSetUp',
		method: 'put',
		params,
	});
}

// 查询仓库信息
export function queryDepotInformationApi(params) {
	return request({
		url: '/admin/appHome/depot/queryDepotInformation',
		method: 'get',
		params,
	});
}

// 查询标签设置项
export function queryLabelSetUpApi() {
	return request({
		url: '/admin/appHome/print/queryLabelSetUp',
		method: 'get',
	});
}

// 标签打印，修改状态
export function modifyLabelPrintStatusApi(data) {
	return request({
		url: '/admin/appHome/print/modifyLabelPrintStatus',
		method: 'put',
		data,
	});
}

// 序号补打
export function serialNumberSupplementApi(data) {
	return request({
		url: '/admin/appHome/print/serialNumberSupplement',
		method: 'put',
		data,
	});
}

